package io.renren.modules.course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.modules.course.dao.ExamCourseMapper;
import io.renren.modules.course.entity.ExamCourse;
import io.renren.modules.course.entity.ExamCourseExample;
import io.renren.modules.course.service.ExamCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Yang
 * @Date 2019/9/4 10:33
 */
@Service
public class ExamCourseServiceImpl extends ServiceImpl<ExamCourseMapper, ExamCourse> implements ExamCourseService {

    @Autowired
    ExamCourseMapper examCourseMapper;

    @Override
    public long countByExample(ExamCourseExample example) {
        return baseMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ExamCourseExample example) {
        return baseMapper.deleteByExample(example);
    }

    @Override
    public List<ExamCourse> selectByExample(ExamCourseExample example) {
        return baseMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(ExamCourse record, ExamCourseExample example) {
        return baseMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(ExamCourse record, ExamCourseExample example) {
        return baseMapper.updateByExample(record, example);
    }

}


